cmake_minimum_required(VERSION 3.26)
project(OllvmSrc)

set(LLVM_DIR ../llvm-project-9.0.1_origin/llvm/cmake-build-debug/lib/cmake/llvm)


find_package(LLVM REQUIRED CONFIG)

list(APPEND CMAKE_MODULE_PATH "${LLVM_CMAKE_DIR}")
include(AddLLVM)

add_definitions(${LLVM_DEFINITIONS})
include_directories(${LLVM_INCLUDE_DIRS})

add_subdirectory(ollvm)
